The constraints parameter of the QTVRGetConstraintStatus function is a pointer to a long integer that encodes the constraints of a view. If a bit in the long integer is set, the current view exhibits the corresponding constraint. The bits are addressed using these constants:
enum {
kQTVRUnconstrained = 0
kQTVRCantPanLeft = 1L << 0,
kQTVRCantPanRight = 1L << 1,
kQTVRCantPanUp = 1L << 2,
kQTVRCantPanDown = 1L << 3,
kQTVRCantZoomIn = 1L << 4,
kQTVRCantZoomOut = 1L << 5,
kQTVRCantTranslateLeft = 1L << 6,
kQTVRCantTranslateRight = 1L << 7,
kQTVRCantTranslateUp = 1L << 8,
kQTVRCantTranslateDown = 1L << 9
};
| Previous | Chapter Contents | Chapter Top | Next |